<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminClassifyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_classify', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('parent_id')->default(0)->comment('上级ID');
            $table->string('title' , 50)->nullable()->comment('分类描述');
            $table->string('img_path',255)->comment('图片地址');
            $table->string('big_img_path',255)->comment('分类导图地址');
            $table->string('icon' , 50)->comment('图标');
            $table->string('uri' , 50)->comment('URI');
            $table->string('routes' , 256)->comment('路由,暂留');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('admin_classify');
    }
}
